package capi

import (
	"base/common/log"
	"github.com/gin-gonic/gin"
)

// @Tags User
// @Summary 创建用户
// @Accept json
// @Produce json
// @Router /demo [post]
func Demo(c *gin.Context) {
	lg := log.New("error", "胖虎你真好 你真是个大沙雕")

	lg.Path("test").DiyLog("string")
	lg.Path("test").DiyLog(1111)
	lg.Path("test").DiyLog(int8(123))
	lg.Path("test").DiyLog(int16(123))
	lg.Path("test").DiyLog(int32(123))
	lg.Path("test").DiyLog(int64(123))
	lg.Path("test").DiyLog(uint(11111))
	lg.Path("test").DiyLog(uint8(123))
	lg.Path("test").DiyLog(uint16(123))
	lg.Path("test").DiyLog(uint32(123))
	lg.Path("test").DiyLog(uint64(123))
	lg.Path("test").DiyLog(nil)
	lg.Path("test").DiyLog(map[string]any{
		"asdasdasd": "asdasda",
	})
	lg.Path("test").DiyLog([]map[string]any{
		{"asdasdasd": "asdasdasd"},
		{"asdasdasd": "asdasdasd"},
		{"asdasdasd": "asdasdasd"},
		{"asdasdasd": "asdasdasd"},
	})

	//log.ELog("lalalla", map[string]any{
	//	"data": "sasdasd",
	//})

}
